package cn.iocoder.yudao.module.erp.dal.mysql.factorycalendar;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.erp.dal.dataobject.factorycalendar.FactoryCalendarDO;
import org.apache.ibatis.annotations.Mapper;
import cn.iocoder.yudao.module.erp.controller.admin.factorycalendar.vo.*;

/**
 * ERP工厂日历 Mapper
 *
 * @author 芋道源码
 */
@Mapper
public interface FactoryCalendarMapper extends BaseMapperX<FactoryCalendarDO> {

    default PageResult<FactoryCalendarDO> selectPage(FactoryCalendarPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<FactoryCalendarDO>()
                .eqIfPresent(FactoryCalendarDO::getFyear, reqVO.getFyear())
                .betweenIfPresent(FactoryCalendarDO::getFdate, reqVO.getFdate())
                .eqIfPresent(FactoryCalendarDO::getFisholiday, reqVO.getFisholiday())
                .betweenIfPresent(FactoryCalendarDO::getCreateTime, reqVO.getCreateTime())
                .orderByDesc(FactoryCalendarDO::getFid));
    }



}